<template>
  <div class="navbar">
    <div class="navbar-item">
    <div class="left"><slot name="left"></slot></div>
    <div class="center"><slot name="center"></slot></div>
    <div class="right"><slot name="right"></slot></div>
    </div>
  </div>
</template>
<script>
export default {
  name: "navbar",
};
</script>

<style scoped>
.navbar {
  display: flex;
  height: 50px;
  color: #fff;
  font-weight: 700;
  box-shadow: 0 1px 1px rgb(100 100 100 / 10%);
   background-color: #ff8198;
}
.navbar-item{
  position: fixed;
  left: 0;
  right: 0;
  z-index: 99;
}
.navbar div {
  display: flex;
  margin: 0 auto;
  line-height: 50px;
}
</style>